#!/usr/bin/env node

const https = require('http');
const fs = require('fs');
const {join} = require('path');

const config = {
  key:fs.readFileSync(join(__dirname,'./key.pem')),
  cert: fs.readFileSync(join(__dirname,'./key-cert.pem'))
}
https.createServer((res,req)=>{
  console.log('hello world!');
  res.end('hello world');
}).listen(8080);
